package socrates.movil;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import socrates.dto.ClaseDTO;

public class HoraCurso extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.horacurso);

		ClaseDTO c = (ClaseDTO) getIntent().getExtras().getSerializable("o");

		((TextView) findViewById(R.id.hcurso)).setText(c.CursoNombre);
		((TextView) findViewById(R.id.hcod)).setText(c.CodCurso);
		((TextView) findViewById(R.id.hsec)).setText(c.getSeccion());
		((TextView) findViewById(R.id.hhora)).setText(
						c.getHora_Inicio().toGMTString().substring(11, 16) + " - "
						+ c.getHora_Fin().toGMTString().substring(11, 16));

	}
}
